#include<stdio.h>
int main()
{
    int count,n;
    n=1;
    int total(int,int);
    
    for(count=1;count<=9;count++)
    {   
        int remain;
        n=total(remain,n);
    }
    return 0;
}

int total(int remain,int n)
{
    remain=(n+1)*2;
    printf("\nThe peaches remain:%d\n",remain);
    n=remain;
    return(n);
}